
cc.Class({
    extends: cc.Component,

    properties: {
        dialogNode: {
            default: null,
            type: cc.Node,
            tooltip: "对话框节点"
        }
    },


    // onLoad () {},
    btnClick: function (event, data) {
        if (data == 'showDialog') {
            cc.log("xxxxxx");
            cc.log(this.dialogNode.getBoundingBox());
            cc.log(this.dialogNode.getBoundingBox().xMax);
            //屏幕的大小
            var winSize = cc.director.getWinSize();
            cc.log(winSize);
            this.dialogNode.active = true;
        } else if (data == 'confirm') {
            this.dialogNode.active = false;
        }
    },
    start: function () {

    },

    // update (dt) {},
});
